using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Rhino.Mocks;
using SQLRunner.gui;
using SQLTests.Framework;

namespace SQLTests.GUI
{

    public class MVCTests : AbstractTest
    {
        public MVCTests() : base() { }

        protected override void SetUpFixtures()
        {
            return;
        }

        [Test]
        public void BasicFunctionality()
        {
            IScriptsController scriptController = MockRepository.GenerateStub<IScriptsController>();
            IScriptsModel scriptsModel = MockRepository.GenerateStub<IScriptsModel>();
            IScriptsView scriptsView = MockRepository.GenerateStub<IScriptsView>();

            scriptController.ScriptsView = scriptsView;
            scriptController.ScriptsModel = scriptsModel;

            scriptsView.Controller = scriptController;

            Assert.AreEqual(scriptController, scriptsView.Controller);
            
        }
    }
}
